import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 0
 * Date: 2023-03-08
 * Time: 10:51
 */
public class Test {

    public static void main(String[] args) {
        System.out.println(max1(1, 2));
        System.out.println(max2(1.2, 3.4, 5.6));
    }

    public static int max1(int a,int b) {
        return (a > b) ? a : b;
    }

    public static double max2(double a,double b,double c) {
        double ret = a>b?a:b;
        return c > ret ? c : ret;
    }

    public static void main11(String[] args) {
        int ret = sum(1,2);
        double ret2 = sum(1.9,8.9,3.7);
        System.out.println(ret);
        System.out.println(ret2);
    }

    public static double sum(double a,double b,double c) {
        return a+b+c;
    }

    public static int sum(int x,int y) {
        return x+y;
    }

    public static void main10(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        System.out.println(fib(n));
    }

    public static int fib(int n) {
        int f1 = 0;
        int f2 = 1;
        int f3 = -1;
        for(int i = 3; i <= n; i++) {
            if(n == 1) {
                return 0;
            }
            if(n == 2) {
                return 1;
            }
            f3 = f1 + f2;
            f1 = f2;
            f2 = f3;
        }
        return f3;
    }

    public static void main9(String[] args) {
        //System.out.println(fac(5));
        //System.out.println(facSum(5));
    }

    public static int facSum(int n) {
        int sum = 0;
        for(int i = 1; i <= 5; i++) {
            sum += fac1(i);
        }
        return sum;
    }

    public static int fac1(int i) {
        int ret = 1;
        for(int j = 1; j <= i; j++) {
            ret *= j;
        }
        return ret;
    }

    public static int fac(int n) {
        if(n == 1) {
            return 1;
        }
        return fac(n-1)* n;
    }

    public static void main8(String[] args) {
        //System.out.println(max3(1, 2, 3));
    }



    public static void main7(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++) {
                if(i == j || (i+j)==(n-1)) {
                    System.out.print("*");
                }else {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }


    public static void main6(String[] args) {
        double sum = 0.0;
        int fag = 1;
        for (int i = 1; i <= 100; i++) {
            sum += fag*(1.0/i);
            fag = -fag;
        }
        System.out.println(sum);
    }



    public static void main5(String[] args) {
        System.out.println(sum2(1729));
    }

    public static int sum2(int n) {
        if(n <= 9) {
            return n;
        }
        return n%10+sum2(n/10);
    }

    public static int add(int x,int y) {
        return x + y;
    }

    public static double add(double x,double y) {
        return x+y;
    }

    public static void main4(String[] args) {
        int a = 10;
        int b = 20;
        int ret = add(a,b);
        System.out.println("ret="+ret);
        double c = 18.0;
        double d = 78.9;
        double ret2 = add(c,d);
        System.out.println("ret2="+ret2);
    }


    public static void main3(String[] args) {
        int ret = facSum(5);
        System.out.println("ret="+ret);
    }

    public static void swap(int x,int y) {
        int tmp = x;
        x = y;
        y = tmp;
    }
    public static void swap2(int[] array) {
        int tmp = array[0];
        array[0] = array[1];
        array[1] = tmp;
    }

    public static void main2(String[] args) {
        int[] array = {10,20};
        System.out.println("交换前："+"array[0]="+array[0]+","+"array[1]="+array[1]);
        swap2(array);
        System.out.println("交换前："+"array[0]="+array[0]+","+"array[1]="+array[1]);
    }

    public static void main1(String[] args) {
        int x = 2022;
        boolean ret = isLeapYear(x);
        if(ret) {
            System.out.println(x+"是闰年");
        }else {
            System.out.println(x+"不是闰年");
        }
        System.out.println("==========");
        int ret2 = add(3,4);
        System.out.println("ret"+" "+"="+" "+ret2*5);

    }



    public  static boolean isLeapYear(int year) {
        if((0 == year % 4 && 0 != year % 100) || 0 == year % 400){
            return true;
        }else {
            return false;
        }
    }
}
